package design.factory.simple.version01;

import design.factory.simple.version01.Sender;
import design.factory.simple.version01.SenderFactory;

public class TestSenderFactory{
    public static void main(String[] args) {
        Sender qq = SenderFactory.getInstance(1);
        qq.send();

        Sender email = SenderFactory.getInstance(SenderFactory.EMAIL);
        email.send();
    }
}
